package cn.kgc.ubagnet.controller;

import cn.kgc.ubagnet.pojo.Clothcolor;
import cn.kgc.ubagnet.pojo.Price;
import cn.kgc.ubagnet.pojo.Size;
import cn.kgc.ubagnet.service.color.ColorService;
import cn.kgc.ubagnet.service.price.PriceService;
import cn.kgc.ubagnet.service.size.SizeService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RestController
public class ColorController {

    @Resource
    ColorService colorService;
    @RequestMapping("/seleColor")
    public List<Clothcolor> seleColor(){
        return colorService.seleColor();
    }

    @Resource
    SizeService sizeService;
    @RequestMapping("/seleSize")
    public List<Size> seleSize(){
        return sizeService.seleAllSize();
    }


    @Resource
    PriceService priceService;
    @RequestMapping("/selePrice")
    public List<Price> selePrice(){return priceService.selePrice();}

}
